<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="weaver.hrm.HrmUserVarify" %>
<%@ page import="weaver.hrm.User" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="bb" class="weaver.general.BaseBean"/>
<%
    bb.writeLog("---------loginout-----------");
    User user = HrmUserVarify.getUser( request, response );
    String loginid = user.getLoginid();
    JSONObject jsonData = new JSONObject();
    String sql = "select id from uf_SRM_gyskpx where gyszh = '"+loginid+"'";
    bb.writeLog(sql);
    rs.executeQuery( sql );
    if (rs.next()) {
        jsonData.put("status","success");
    }else {
        jsonData.put("status","error");
    }
    out.print( jsonData.toJSONString() );
    bb.writeLog( "jsonData111=" + jsonData.toJSONString() );
%>


